﻿<UserControl x:Class="WMSSoft.WinKStart.UserControls.WinKStartStartButton"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="280" d:DesignWidth="454">
    <Grid Background="#FFFFFFFF" Height="280" Width="454" Margin="0,5,0,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="123"/>
            <ColumnDefinition Width="191*"/>
            <ColumnDefinition Width="140*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Label Content="Mode" Grid.Column="0" Grid.Row="0" Padding="5,3,5,0" Margin="0,0,0,0" />
        <ComboBox Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="1" Margin="0,0,0,0" VerticalAlignment="Top" SelectedValue="{Binding Data.ReplaceStartButton}" SelectedValuePath="Value1" DisplayMemberPath="Value2" ItemsSource="{Binding StartButtonModeItems}" />
        <Label Grid.Row="1" Grid.Column="0" Content="Custom Image" Margin="0" Padding="5,7,0,0" />
        <WrapPanel Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,6,0,0" >
            <TextBox Width="300" IsEnabled="{Binding EnableCustomButtonImage}" Text="{Binding Data.StartButtonSymbol}" />
            <Button Content="..." Width="20" Margin="5,1,5,0" IsEnabled="{Binding EnableCustomButtonImage}"/>
        </WrapPanel>

        <CheckBox Content="Replace StartButton on all Taskbars (If here are more than one Monitors)" Margin="5,6,5,0" IsChecked="{Binding Data.ReplaceAllTaskbars}" Grid.Row="2" Grid.ColumnSpan="3" VerticalAlignment="Top" Height="15"/>
        <CheckBox Content="Activate Hot Edges" Margin="5,6,5,0" Grid.Row="3" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="15" IsChecked="{Binding Data.DisableHotEdges}"/>
        <CheckBox Content="Activate Metro StartScreen" Margin="30,6,5,0" Grid.Row="4" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="15" IsChecked="{Binding Data.DisableMetroScreen}"/>


        <WrapPanel Grid.Row="5" Grid.ColumnSpan="3">
            <Label Content="after " HorizontalAlignment="Left" Padding="0,0,0,0" Margin="10,5,0,0" VerticalAlignment="Top" Height="20"/>
            <TextBox HorizontalAlignment="Left" Height="20" TextWrapping="Wrap" Text="{Binding Data.RestoreAfterFailedGUI}" Margin="5,5,0,0" VerticalAlignment="Top" Width="32" VerticalContentAlignment="Center"/>
            <Label Content="seconds Restore Windows Start Button (if GUI is crashed)" HorizontalAlignment="Left" Padding="0,0,0,0" Margin="10,5,0,0" VerticalAlignment="Top" Height="20" Width="345"/>                        
        </WrapPanel>
    </Grid>
</UserControl>
